import Vue from 'vue'
import Vuex from 'vuex'
import user from './user'
// 导入持久化存储包
import createPersistedState from 'vuex-persistedstate'
Vue.use(Vuex)

export default new Vuex.Store({
  // 配置为 vuex 的插件
  plugins: [createPersistedState()],
  state: {},
  mutations: {},
  actions: {},
  modules: { user }
})
